using System;

namespace SharpMud.MudLib.SAMPLE.Net.SessionStates
{
	public class HaltForWorld : SessionStateBase
	{
		private const string
			Msg		=	""
		+	"^!^![yellow]Sorry, but there is no world to put you in right now."
		+	          "^!So you can hang here a while!^!^!";
		private bool _MsgSent;

		public HaltForWorld()
		{
			_MsgSent=false;
		}

		public override string StateID
		{
			get
			{
				return "HaltForWorld";
			}
		}

		public override void Pulse()
		{
			if(!StillActive)
				return;
			if(!_MsgSent)
			{
				Session.Write(Msg);
				_MsgSent = true;
			}
			return;
		}

	}
}
